package com.cloudkinto.service.orderoutput.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2020/6/5
 */
@Data
@ApiModel
public class OrderOutputPackageAddReq {
    @ApiModelProperty("订单出库id")
    private Long orderOutputId;

    @ApiModelProperty("长度")
    @NotNull(message = "pls.input.product.length")
    @Min(value= 0 ,message= "pls.input.length.g0" )
    private double length;

    @ApiModelProperty("宽度")
    @NotNull(message = "pls.input.product.width")
    @Min(value= 0 ,message= "pls.input.width.g0" )
    private double width;

    @ApiModelProperty("高度")
    @NotNull(message = "pls.input.product.height")
    @Min(value= 0 ,message= "pls.input.height.g0" )
    private double height;

    @ApiModelProperty("重量")
    @NotNull(message = "pls.input.product.weight")
    @Min(value= 0 ,message= "pls.input.weight.g0" )
    private double weight;

    @ApiModelProperty("运输id")
    private Long trackId;

    @ApiModelProperty("运输编号")
    private String expressNumber;

    @ApiModelProperty("包裹数量")
    @NotNull(message = "pls.input.package.count")
    @Min(value= 0 ,message= "pls.input.count.g0" )
    private int packageCount;

//    @NotEmpty(message = "请选择商品")
    private List<OrderOutputProductAddReq> productList;

}
